package com.csrcb.constant;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

/**
 * @Classname EmsInfoUrlValue
 * @Description 请求查询证书状态的url
 * @Date 2020/12/16 17:06
 * @Created by gangye
 */
public class EmsInfoUrlValue {
    private static Logger log = LoggerFactory.getLogger(EmsInfoUrlValue.class);

    private static String queryemstoken;

    static {
        Properties prop = new Properties();
        try {
            //configConstant.properties配置文件
            InputStream is = FileParamValue.class.getClassLoader().getResourceAsStream("configConstant.properties");
            // 传入编码格式解决中文乱码
            prop.load(new InputStreamReader(is,"utf-8"));
            queryemstoken = prop.getProperty("token");
        } catch (IOException e) {
            log.error("读取配置文件获取信息异常");
        }
    }

    private EmsInfoUrlValue(){}

    public static String getQueryemstoken() {
        return queryemstoken;
    }
}
